package com.example.consulclient8889.failback;

import com.example.consulclient8889.feign.FeignUserClient;
import entity.TestDemo;
import org.springframework.stereotype.Component;

import java.util.concurrent.ConcurrentHashMap;

@Component
public class TestDemoFallBack implements FeignUserClient {

    @Override
    public String test() {
        return null;
    }

    @Override
    public String testid(int idd) {
        return "测试OpenFeign的熔断策略！"+idd ;
    }

    @Override
    public ConcurrentHashMap demopost(TestDemo demo) {
        return null;
    }
}